package br.unifor.lec.aco.graph;

import java.util.List;


//atualizacao
public class Vertice {

	int x;

	int y;
	
	int id;

	public boolean target;
	
	public boolean gateway;
	
	public int numAgentesAqui=0;

	public float d;
	
	public float distanciaAlvos;

	public List<Integer> adjacents;
	
	public float distanciaBM;

	public String anteriorBM;
	
	public Vertice(int id){
		this.id=id;
	}
	
	public Vertice(int x, int y, int id, List<Integer> adjacents) {
		this.x = x;
		this.y = y;
		this.id=id;
		this.adjacents = adjacents;
		target = false;
		gateway=false;
		distanciaBM=Float.MAX_VALUE;
		anteriorBM=null;
	}

	public String toString() {    //Alaways a good idea for debuging
		if(this.gateway || this.target){
			return numAgentesAqui+"";
		}
		return ""+id;				// JUNG makes good use of these
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getNumAgentesAqui() {
		return numAgentesAqui;
	}

	public void setNumAgentesAqui(int numAgentesAqui) {
		this.numAgentesAqui = numAgentesAqui;
	}
}
